package com.service;

import com.domain.BookAndComments;
import com.domain.Comments;
import com.entity.PageResult;
import java.util.List;

public interface BookAndCommentsService {

    //显示所有评论
    List<BookAndComments> selectAll();

    //增加中间表信息
    Integer addBookAndComments(BookAndComments bookAndComments);

    //增加评论表信息
    Integer addComments(Comments comments);

    //查看具体书籍评论
    PageResult findByIsbn(String isbn,int pageNum, int pageSize);

    //更加书名或者评论内容搜索评论
    PageResult search(BookAndComments bookAndComments, int pageNum, int pageSize);

}
